<h2><?php echo ($model->maintain_plate_no!=''?'牌号:'.$model->maintain_plate_no:'').'登记号:'.$model->maintain_reg_no.'的'.($model->kind==0?'车辆':'尾板').'日常维修费用';?></h2>

<div class="actionBar1">
<?php 
	if(isset($_GET['ok'])) {if($_GET['ok']==0) $mess='添加成功！'; else $mess='更新成功！';unset($_GET['ok']);}//判断添加/更新信息
	$act=isset($_GET['ret'])?$_GET['ret']:$ret;//判断show以后返回路径
	unset($_GET['ret']);unset($_GET['id']);
	$url=array($act)+$_GET;
?>
[<?php echo CHtml::link('返回',$url); ?>]
</div>

<table class="dataGrid" width="80%">
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('kind')); ?>
</th>
    <td><?php echo CHtml::encode($model->getKindName()); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('maintain_plate_no')); ?>
</th>
    <td><?php echo CHtml::encode($model->maintain_plate_no); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('maintain_reg_no')); ?>
</th>
    <td><?php echo CHtml::encode($model->maintain_reg_no); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('plate_no')); ?>
</th>
    <td><?php echo CHtml::encode($model->plate_no); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('reg_no')); ?>
</th>
    <td><?php echo CHtml::encode($model->reg_no); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('driver_name')); ?>
</th>
    <td><?php echo CHtml::encode($model->driver_name); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('odometer_count')); ?>
</th>
    <td><?php echo CHtml::encode($model->odometer_count); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('max_item')); ?>
</th>
    <td><?php echo CHtml::encode($model->getMaxItemName()); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('mean_item')); ?>
</th>
    <td><?php echo CHtml::encode($model->getMeanItemName().' '.$model->getSmallestItemName()); ?>
</td>
</tr>
<?php 
if($model->mean_item==0):
?>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('tyre_name')); ?>
</th>
    <td><?php echo CHtml::encode($model->tyre_name); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('tyre_position')); ?>
</th>
    <td><?php echo CHtml::encode($model->getTyrePositionName()); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('tyre_type')); ?>
</th>
    <td><?php echo CHtml::encode($model->getTyreTypeName()); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('tyre_sum')); ?>
</th>
    <td><?php echo CHtml::encode($model->tyre_sum); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('tyre_unit_price')); ?>
</th>
    <td><?php echo CHtml::encode($model->tyre_unit_price); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('tyre_no')); ?>
</th>
    <td><?php echo CHtml::encode($model->tyre_no); ?>
</td>
</tr>
<?php 
endif;
?>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('maintain_co')); ?>
</th>
    <td><?php echo CHtml::encode($model->maintain_co); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('maintain_date')); ?>
</th>
    <td><?php echo CHtml::encode($model->maintain_date); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('maintain_cost')); ?>
</th>
    <td><?php echo CHtml::encode($model->maintain_cost); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('remark')); ?>
</th>
    <td><?php echo CHtml::encode($model->remark); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('create_time')); ?>
</th>
    <td><?php echo CHtml::encode($model->create_time); ?>
</td>
</tr>
</table>
<?php if(isset($mess)) echo "<script>alert('$mess');</script>";?>
<div class="actionBar1">[<?php echo CHtml::link('返回',$url); ?>]
</div>